<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script src="<c:url value="/scripts/jquery-1.4.2.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>
<script src="<c:url value="/scripts/jquery-ui-1.8.custom.min.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">

$(function(){
	$('#findIdBtn').click(function(){
		$.get("/umanji/umj/user/userfindId?name="+$('#realNameId').val()+"&jumin1="+$('#juminNum1Id').val()+"&jumin2="+$('#juminNum2Id').val(), function(data) {
			if(data != "0"){
				$("#IdDiv").html('고객님의 아이디는'+data+'입니다.');
			}else{$("#IdDiv").html('해당하는 정보의 아이디가 없습니다. 다시 확인 하세요.');}	
			});
	});
	$('#findPwBtn').click(function(){
		$.get('/umanji/umj/user/userfindPw?realname='+$('#realNamePw').val()+'&jumin1='+$('#juminNum1Pw').val()+'&jumin2='+$('#juminNum2Pw').val()+'&userid='+$('#usernamePw').val(), function(data) {
			if(data != "0"){
				$("#PwDiv").html('고객님의 비밀번호는'+data+'입니다.');
			}else{$("#PwDiv").html('입력하신 정보가 올바른지 확인하여 주세요.');}			
			});
	});
});


</script>
<table width="880" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="TP30 BP30">
    
<form:form action="findId" method="post" modelAttribute="user">
			<form:errors path="*" cssClass="errors"/>    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="54"><img src="<c:url value="/images/sub/title10.gif"/>" width="127" height="21"></td>
        <td width="826">&nbsp;</td>
      </tr>
      <tr>
        <td class="td4a4d4a"></td>
        <td class="tde7e7e7"></td>
      </tr>
      <tr>
        <td colspan="2" class="TP15 font12_4f4f4f">개인정보 보호 차원에서 이름, 주민등록번호 모두를 검사하여 일치하는 경우에만 아이디를 알려드립니다.</td>
      </tr>
      <tr>
        <td height="30" colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><img src="<c:url value="/images/sub/con_title03.gif"/>" width="74" height="24"></td>
      </tr>
      <tr>
        <td colspan="2">
        
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="20%" height="37" class="tdd6d7d6_top tdfffbff LP20 font12B_4f4f4f"><label for="realName">사용자 이름</label> </td>
            <td width="80%" class="line_d6d7d6_top line_e7e7e7 LP20 font12_4f4f4f">
            <form:input path="realName" name="textfield3" class="input" style="width:230px" id="realNameId"/>
            </td>
          </tr>
          <tr>
            <td height="37" class="tdfffbff LP20 font12B_4f4f4f"> <label for="juminNum1">주민등록 번호</label> </td>
            <td class="line_e7e7e7 LP20 font12_4f4f4f">
            <form:input path="juminNum1" name="textfield3" class="input" style="width:150px" id="juminNum1Id"/>- 
  			<form:input path="juminNum2" name="textfield32" class="input" style="width:150px" id="juminNum2Id"/>
  			<form:errors path="juminNum1" cssClass="errors"/>
			<form:errors path="juminNum2" cssClass="errors"/>
  </td>
          </tr>

        </table>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="TP10 BP15 font12_4f4f4f">
        <table width="53" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="53"><img src="<c:url value="/images/btn/btn_ok01.gif"/>" width="53" height="25" border="0" style="cursor: pointer" id="findIdBtn"></td>
          </tr>
    	</table>

    </td>
      </tr>

      <tr>
        <td colspan="2" class="TP10 BP15 font12_4f4f4f" align="center"><div id="IdDiv"></div></td>
      </tr>
            
      </table>

</form:form>      


<form:form action="findPw" method="post" modelAttribute="user">
		<form:errors path="*" cssClass="errors"/>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">            
      <tr>
        <td colspan="2"><img src="<c:url value="/images/sub/con_title04.gif"/>" width="86" height="24"></td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="20%" height="37" class="tdd6d7d6_top tdfffbff LP20 font12B_4f4f4f"><label for="user.username">아이디</label></td>
            <td width="80%" class="line_d6d7d6_top line_e7e7e7 LP20 font12_4f4f4f">
            <form:input path="user.username" name="textfield3" class="input" style="width:230px" id="usernamePw"/>
            </td>
          </tr>
          <tr>
            <td height="37" class="tdfffbff LP20 font12B_4f4f4f"> <label for="realName">사용자 이름</label> </td>
            <td class="line_e7e7e7 LP20 font12_4f4f4f">
            <form:input path="realName" name="textfield3" class="input" style="width:230px" id="realNamePw"/>
            </td>
          </tr>
          <tr>
            <td height="37" class="tdfffbff LP20 font12B_4f4f4f"> <label for="juminNum1">주민등록 번호</label> </td>
            <td class="line_e7e7e7 LP20 font12_4f4f4f">
              	<form:input path="juminNum1" name="textfield33" class="input" style="width:150px" id="juminNum1Pw"/>-<form:input path="juminNum2" name="textfield322" class="input" style="width:150px" id="juminNum2Pw"/>
				<form:errors path="juminNum1" cssClass="errors"/>
				<form:errors path="juminNum2" cssClass="errors"/>
              </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="TP10 BP15 font12_4f4f4f"><table width="53" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="53"><img src="<c:url value="/images/btn/btn_ok01.gif"/>" width="53" height="25" border="0" style="cursor: pointer" id="findPwBtn"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" class="TP10 BP15 font12_4f4f4f" align="center"><div id="PwDiv"></div></td>
      </tr>      
    </table>
</form:form>    
      </td>
  </tr>
</table>


